home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / COM / MacWebLint 1.014 folder.sit / MacWebLint 1.014 folder / MacWebLint-1.014 / MacWebLint.rc < prev    next >
Text File  |  1996-02-25  |  15KB  |  330 lines

  1. #
  2. # sample configuration file for weblint
  3. # distributed as part of weblint 1.014
  4. #
  5. # The settings in this file reflect the built-in defaults.
  6. # I.e. if a warning is enabled in this file, then it is enabled by
  7. # default, and you don't have to enable it in your .weblintrc.
  8. #
  9.  
  10. #========================================================================
  11. #    Weblint Variables
  12. #========================================================================
  13.  
  14. #
  15. # message-style: style of warning message to generate
  16. #    lint    generate warnings similar to traditional lint:
  17. #            file(line #): warning
  18. #        this is the default
  19. #    short    don't include the filename in the warning message:
  20. #            line #: warning
  21. #    terse    a style which is easy for another program to parse:
  22. #            file:line #:warning-identifier
  23.  
  24. set message-style = lint
  25.  
  26. #
  27. # directory-index: list of filenames for directory indices
  28. #
  29. # If you server supports multiple index file names:
  30. #    set directory-index = index.html, welcome.html
  31. #
  32. # JS - 2-4-96
  33. # Added default.html for Macintosh users. :)
  34.  
  35. set directory-index = index.html, default.html
  36.  
  37. #========================================================================
  38. #    Extensions
  39. #========================================================================
  40.  
  41. #------------------------------------------------------------------------
  42. # Allow netscape HTML extensions, such as CENTER and FONT
  43. #------------------------------------------------------------------------
  44. # uncomment following line to enable the netscape extensions
  45. # extension netscape
  46.  
  47. #------------------------------------------------------------------------
  48. # Allow java HTML extensions: the APPLET and PARAM elements
  49. #------------------------------------------------------------------------
  50. # uncomment following line to enable the java extensions
  51. # extension java
  52.  
  53.  
  54. #========================================================================
  55. #    Weblint Warnings
  56. #========================================================================
  57.  
  58. #------------------------------------------------------------------------
  59. # By default, when recursing in a directory, weblint will check files
  60. # which are symlinks.  Uncomment the following line if you want weblint
  61. # to skip symlinks.  This is equivalent to the -l command-line switch
  62. #------------------------------------------------------------------------
  63. # ignore symlinks
  64.  
  65. #------------------------------------------------------------------------
  66. # There are two checks for the case of element tags:
  67. #    upper-case    all tags should be in upper case
  68. #    lower-case    all tags should be in lower case
  69. # If both are disabled, then case is ignored
  70. #------------------------------------------------------------------------
  71. disable upper-case lower-case
  72.  
  73. #------------------------------------------------------------------------
  74. # Bad style to use `here' as anchor text
  75. #------------------------------------------------------------------------
  76. enable here-anchor
  77.  
  78. #------------------------------------------------------------------------
  79. # Flag any elements which are not recognized.  This will catch mis-typed
  80. # elements (e.g. <TOTLE>, or <¥BODY>).
  81. #------------------------------------------------------------------------
  82. enable unknown-element
  83.  
  84. #------------------------------------------------------------------------
  85. # check element attributes to see if they are legal
  86. #------------------------------------------------------------------------
  87. enable unknown-attribute
  88.  
  89. #------------------------------------------------------------------------
  90. # flag if no HEAD element in page
  91. #------------------------------------------------------------------------
  92. enable require-head
  93.  
  94. #------------------------------------------------------------------------
  95. # Flag elements which should only appear once on a page (eg TITLE)
  96. #------------------------------------------------------------------------
  97. enable once-only
  98.  
  99. #------------------------------------------------------------------------
  100. # Flag case where page has BODY element, but no HEAD defined
  101. #------------------------------------------------------------------------
  102. enable body-no-head
  103.  
  104. #------------------------------------------------------------------------
  105. # If you want outer element to be <HTML>
  106. #------------------------------------------------------------------------
  107. enable html-outer
  108.  
  109. #------------------------------------------------------------------------
  110. # Flag elements which are only allowed to appear in HEAD element
  111. #------------------------------------------------------------------------
  112. enable head-element
  113.  
  114. #------------------------------------------------------------------------
  115. # Flag elements which aren't allowed to appear in HEAD element
  116. #------------------------------------------------------------------------
  117. enable non-head-element
  118.  
  119. #------------------------------------------------------------------------
  120. # Flag obsolete elements, such as XMP and LISTING
  121. #------------------------------------------------------------------------
  122. enable obsolete
  123.  
  124. #------------------------------------------------------------------------
  125. # Flag mis-matched begin and end tags;  for example:
  126. #    <H1> ... </H2>
  127. #------------------------------------------------------------------------
  128. enable mis-match
  129.  
  130. #------------------------------------------------------------------------
  131. # Flag any IMG elements which don't have ALT text defined.
  132. #------------------------------------------------------------------------
  133. enable img-alt
  134.  
  135. #------------------------------------------------------------------------
  136. # Flag illegally nested elements (such as anchors).
  137. #------------------------------------------------------------------------
  138. enable nested-element
  139.  
  140. #------------------------------------------------------------------------
  141. # Check for those elements which have required context.
  142. # For example, the <CAPTION> element can only appear in <FIG> or <TABLE>
  143. #------------------------------------------------------------------------
  144. enable required-context
  145.  
  146. #------------------------------------------------------------------------
  147. # Check for mailto: LINK in header;  for example:
  148. #    <LINK REV=MADE HREF="mailto:neilb@khoral.com">
  149. # This lets at least lynx users comment on a page.
  150. #------------------------------------------------------------------------
  151. disable mailto-link
  152.  
  153. #------------------------------------------------------------------------
  154. # Flag overlapped elements.  For example:
  155. #    <A HREF="..."> <B> text </A> </B>
  156. #------------------------------------------------------------------------
  157. enable element-overlap
  158.  
  159. #------------------------------------------------------------------------
  160. # Generate a warning if closing tag is not seen for elements where
  161. # it is expected.  A common case is <A NAME="..."> ... </A>.
  162. #------------------------------------------------------------------------
  163. enable unclosed-element
  164.  
  165. #------------------------------------------------------------------------
  166. # Generate a warning if markup appears inside a comment.  This can
  167. # confuse quite a few browsers, so it's not a good idea to do it.
  168. #------------------------------------------------------------------------
  169. enable markup-in-comment
  170.  
  171. #------------------------------------------------------------------------
  172. # You are not allowed to have any whitespace between the opening
  173. # < and element name.
  174. #------------------------------------------------------------------------
  175. enable leading-whitespace
  176.  
  177. #------------------------------------------------------------------------
  178. # Flag potentially unclosed tags:
  179. #    < ... < ... >
  180. #------------------------------------------------------------------------
  181. enable unexpected-open
  182.  
  183. #------------------------------------------------------------------------
  184. # Elements which do not have any required attributes, but for which at
  185. # least one attribute is expected.  Anchors, for example.
  186. #------------------------------------------------------------------------
  187. enable expected-attribute
  188.  
  189. #------------------------------------------------------------------------
  190. # Required element attributes.  Eg IMG tag must have SRC attribute.
  191. #------------------------------------------------------------------------
  192. enable required-attribute
  193.  
  194. #------------------------------------------------------------------------
  195. # Currently just checks local links, to see if target file exists.
  196. # disabled at the moment, since it generates bogus warnings if the file
  197. # path included directories.
  198. #------------------------------------------------------------------------
  199. disable bad-link
  200.  
  201. #------------------------------------------------------------------------
  202. # Check for headings which are more than 1 level deeper than previous.
  203. # Example: <H1> followed by <H3>
  204. #------------------------------------------------------------------------
  205. enable heading-order
  206.  
  207. #------------------------------------------------------------------------
  208. # Check for odd number of double quotes in tag, to catch things like:
  209. #        <A HREF="url >
  210. #------------------------------------------------------------------------
  211. enable odd-quotes
  212.  
  213. #------------------------------------------------------------------------
  214. # Warn about closing tag for elements which don't take a closing tag.
  215. # For example: <IMG SRC="foo.gif" ALT="alt text"></IMG>
  216. #------------------------------------------------------------------------
  217. enable illegal-closing
  218.  
  219. #------------------------------------------------------------------------
  220. # Warn about unclosed comments.  For example:
  221. #    <!-- this comment is not correctly closed >
  222. # Legal SGML comments are:
  223. #    <!-- ... blah blah ... -->
  224. #------------------------------------------------------------------------
  225. enable unclosed-comment
  226.  
  227. #------------------------------------------------------------------------
  228. # Warning for use of physical font markup, rather than logical
  229. # For example:
  230. #    <B> where you should use <STRONG>
  231. #    <I> where you should use <EM>
  232. #    <TT> where you should use <CODE>, <KBD>, <VAR>, or <SAMP>
  233. #------------------------------------------------------------------------
  234. disable physical-font
  235.  
  236. #------------------------------------------------------------------------
  237. # Warning for repeated attributes within the same tag.  For example:
  238. #    <IMG SRC="foo.gif" SRC="bar.gif">
  239. #    <A NAME="fred" NAME="bloggs">
  240. #------------------------------------------------------------------------
  241. enable repeated-attribute
  242.  
  243. #------------------------------------------------------------------------
  244. # Warn against use of ' as a delimiter for attribute values.  E.g.:
  245. #    <A HREF='http://www.khoral.com/'>KRI</A>
  246. #------------------------------------------------------------------------
  247. enable attribute-delimiter
  248.  
  249. #------------------------------------------------------------------------
  250. # Warn against use of netscape-specific attributes for non netscape-specific
  251. # elements.  For example:
  252. #    <BODY BGCOLOR="#fefefe">
  253. #------------------------------------------------------------------------
  254. enable netscape-attribute
  255.  
  256. #------------------------------------------------------------------------
  257. # Warn about attributes on a closing tag of container element.  E.g.:
  258. #    <A HREF="foobar.html">click here!</A NAME="foobar">
  259. #------------------------------------------------------------------------
  260. enable closing-attribute
  261.  
  262. #------------------------------------------------------------------------
  263. # When recursing in a directory, check whether there is a directory
  264. # index file.  See also the variable `directory-index', which specifies
  265. # the name of index file to look for.
  266. #------------------------------------------------------------------------
  267. enable directory-index
  268.  
  269. #------------------------------------------------------------------------
  270. # Warn about empty container elements.  For example:
  271. #    <TITLE></TITLE>
  272. #------------------------------------------------------------------------
  273. enable empty-container
  274.  
  275. #------------------------------------------------------------------------
  276. # Warn about situations where one element is expected to immediately
  277. # follow another, with no tags or text between. For example:
  278. #    1) LH should be the first thing in a UL, if it appears at all
  279. #    2) should be nothing between </HEAD> and <BODY>
  280. #------------------------------------------------------------------------
  281. enable must-follow
  282.  
  283. #------------------------------------------------------------------------
  284. # Warn about IMG elements which don't have the WIDTH and HEIGHT
  285. # attributes set. Setting these attributes can improve page layout speed
  286. # on some browsers.
  287. #------------------------------------------------------------------------
  288. disable img-size
  289.  
  290. #------------------------------------------------------------------------
  291. # Warn about leading or trailing whitespace for certain container
  292. # elements: A, TITLE, H1 through H6.
  293. #------------------------------------------------------------------------
  294. disable container-whitespace
  295.  
  296. #------------------------------------------------------------------------
  297. # Warn if you don't have a DOCTYPE element as the first thing in
  298. # your document.
  299. #------------------------------------------------------------------------
  300. disable require-doctype
  301.  
  302. #------------------------------------------------------------------------
  303. # Warn if you a metacharacter is included literally, rather than using
  304. # the appropriate entity. Currently this just warns about use of >,
  305. # in which case you should use >
  306. #------------------------------------------------------------------------
  307. enable literal-metacharacter
  308.  
  309. # ========================================================================
  310. # Warnings added in the 1.014 release
  311. # ========================================================================
  312.  
  313. #------------------------------------------------------------------------
  314. # Warn if a heading is closed with a different level close tag than
  315. # the heading was opened with. For example:
  316. #    <H2>... blah blah ...</H1>
  317. #------------------------------------------------------------------------
  318. enable heading-mismatch
  319.  
  320. #------------------------------------------------------------------------
  321. # Warn if text is seen in unexpected context, such as inside a UL element
  322. # (rather than inside an LI, which is inside a UL. Or in the HEAD element.
  323. #------------------------------------------------------------------------
  324. enable bad-text-context
  325.  
  326. #------------------------------------------------------------------------
  327. # Warn about illegal attribute values, such as values in the wrong format.
  328. #------------------------------------------------------------------------
  329. enable attribute-format
  330.